package descentFly.away3D4.element.Extends
{
	import UIFree.ObjectEvent;
	
	import descentFly.app.df_events;
	import descentFly.away3D4.element.df_element;
	
	public class df_bonusController extends df_distanceController {
		public function df_bonusController(a_ctrl:df_element, a_options:Object) {
			super(a_ctrl, a_options);
		}
		
		override protected function doNearest():void {
			ctrl.Space.player.bonus += options.bonusValue;
			ctrl.pickUp();
			super.doNearest();
		}
	}
}